package com.extsci.webmail.common.entity.http;

import lombok.Data;

import java.util.List;

/**
 * 分页
 * @author ccoke
 */
@Data
public class Pageable<T> {
    /**
     * 总页数
     */
    private Integer pages;

    /**
     *当前页码
     */
    private Integer pageNum;

    /**
     * 数据
     */
    private List<T> result;

    public Pageable(Integer pages, Integer pageNum, List<T> result) {
        this.pages = pages;
        this.pageNum = pageNum;
        this.result = result;
    }
}
